
function evt_find_empno_ondblclick(find_empno){
}

function evt_find_empno_app_ondblclick(find_empno_app){
}

function evt_btnQuery_onclick(){
  getDataViewHtml(document.search_form.db_alias.value,document.search_form.db_debug.value,document.search_form.source_charset.value,document.search_form.target_charset.value,document.search_form.flow_code.value,document.search_form.flow_main_table.value,document.search_form.find_flow_num.value,document.search_form.find_empno.value,document.search_form.find_empno_app.value,document.search_form.find_status.value,document.search_form.find_app_date_from.value,document.search_form.find_app_date_to.value);
}

function evt_btnWkfUrge_onclick(pstrDBAlias,pstrDBDebug,pstrSourceCharset,pstrTargetCharset,varSn){
  var flow_status = document.all.item('status'+varSn).value;
  if(flow_status == "D"){alert('草稿不需跟催');  }
  else{window.showModalDialog("/PUBPAGE/wkf_urge.jsp?flownum="+document.DataViewForm.item('flow_num'+varSn).value+"&db_alias=" + pstrDBAlias + "&debug=false&source_charset=big5&target_charset=big5","_blank","toolbar=no,location=no,directories=no,scrollbars=yes,width=880,height=600");};
}

function getDataViewHtml(db_alias,db_debug,source_charset,target_charset,flow_code,flow_main_table,flow_num,empno,empno_app,status,app_date_from,app_date_to){
  xmlDoc=getXmlDoc();

  xmlDoc.Open("POST",'/PUBPAGE/flow_search.jsp?prgAction=getData&data_kind=find_flow&db_alias='+ db_alias + '&db_debug=' + db_debug + '&source_charset=' + source_charset + '&target_charset=' + target_charset + '&flow_code=' + flow_code + '&flow_main_table=' + flow_main_table + '&find_flow_num=' + flow_num + '&find_empno=' + empno + '&find_empno_app=' + empno_app + '&find_status=' + status + '&find_app_date_from=' + app_date_from + '&find_app_date_to=' + app_date_to,false);
  xmlDoc.send();

  document.all.item('divDataView').innerHTML=xmlDoc.responseText;
}
function evt_btnCancel_onclick(){
  divDataView.innerHTML="";
  document.search_form.reset();
}
